package com.usian.pojo;

import org.springframework.format.annotation.DateTimeFormat;
import sun.awt.SunHints;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

public class Dept {
    @Id
    private Integer id;
    private String dname;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ctime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Dept() {
    }

    public Dept(Integer id, String dname, Date ctime) {
        this.id = id;
        this.dname = dname;
        this.ctime = ctime;
    }
}
